import Cookies from 'js-cookie'

export function getUser() {
   var user = Cookies.get('User');
    return user?JSON.parse(user):user;
}
export function setUser(user) {
  return Cookies.set('User', JSON.stringify(user))
}
export function removeUser(){
  Cookies.remove("User");
}
